Skip to content

GPC Consumer adaptor logging improvements#331

Merged
ORybak5 merged 2 commits into
mainfrom
logging-improvements
Jun 10, 2026
Merged

GPC Consumer adaptor logging improvements#331
ORybak5 merged 2 commits into
mainfrom
logging-improvements

Conversation

@ORybak5

@ORybak5 ORybak5 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

What

The adaptor logging improvements

Why

The robust and clear structured logging helps during investigations and all kinds of enquiries

Type of Change

Please check the option(s) that apply.

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Internal change (non-breaking change with no effect on functionality affecting end users)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the Changelog with details of my change in the UNRELEASED section, if this change will affect end users

@github-actions

Copy link
Copy Markdown

Images built and published to ECR using a Build Id of PR-341-b0f1eea

@ORybak5 ORybak5 requested a review from Copilot June 10, 2026 14:48
@ORybak5 ORybak5 marked this pull request as ready for review June 10, 2026 14:50
@ORybak5 ORybak5 requested a review from a team as a code owner June 10, 2026 14:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances outbound WebClient logging for SDS calls to improve traceability during investigations by adding explicit request/response logs and additional error logging.

Changes:

  • Add INFO-level logging for outbound requests and introduce a new response-status logging filter.
  • Add an error log hook to SDS WebClient requests.
  • Update SDS WebClient filter wiring to include the new response logging filter.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
service/src/main/java/uk/nhs/adaptors/gpc/consumer/web/WebClientFilterService.java Adds outbound request INFO log, refines header debug log message, and introduces logResponse() filter.
service/src/main/java/uk/nhs/adaptors/gpc/consumer/sds/SdsClient.java Adds doOnError logging for SDS request failures.
service/src/main/java/uk/nhs/adaptors/gpc/consumer/sds/builder/SdsRequestBuilder.java Registers the new response logging filter in the SDS WebClient filter chain.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread service/src/main/java/uk/nhs/adaptors/gpc/consumer/sds/SdsClient.java Outdated
@github-actions

Copy link
Copy Markdown

Images built and published to ECR using a Build Id of PR-341-b0f1eea

@github-actions

Copy link
Copy Markdown

Images built and published to ECR using a Build Id of PR-342-05e9935

@chiaramapellimt chiaramapellimt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ORybak5 ORybak5 merged commit f4a1705 into main Jun 10, 2026
7 of 14 checks passed
@ORybak5 ORybak5 deleted the logging-improvements branch June 10, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants